package com.base.service.impl;

import com.base.mapper.ipmapper.IpStoredMapper;
import com.base.mapper.voipmapper.AboutsMapper;
import com.base.po.ip.IpStored;
import com.base.po.ip.IpStoredExample;
import com.base.po.voip.Abouts;
import com.base.po.voip.AboutsExample;
import com.base.service.AboutsService;
import com.base.service.IpStoredService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("ipStoredService")
public class IpStoredServiceImpl implements IpStoredService {
	
	@Autowired
	private IpStoredMapper ipStoredMapper;


	@Override
	public int countByExample(IpStoredExample example) {
		return ipStoredMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(IpStoredExample example) {
		return ipStoredMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return ipStoredMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(IpStored record) {
		return ipStoredMapper.insert(record);
	}

	@Override
	public int insertSelective(IpStored record) {
		return ipStoredMapper.insertSelective(record);
	}

	@Override
	public List<IpStored> selectByExample(IpStoredExample example) {
		return ipStoredMapper.selectByExample(example);
	}

	@Override
	public List<IpStored> selectByIpAddress(String ipaddress) {
		return ipStoredMapper.selectByIpAddress(ipaddress);
	}

	@Override
	public IpStored selectByPrimaryKey(Integer id) {
		return ipStoredMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(IpStored record, IpStoredExample example) {
		return ipStoredMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(IpStored record, IpStoredExample example) {
		return ipStoredMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(IpStored record) {
		return ipStoredMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(IpStored record) {
		return ipStoredMapper.updateByPrimaryKeySelective(record);
	}
}
